layui.use(['form','layer','util'],function (){
    let form = layui.form,layer = layui.layer,util = layui.util;
})

/**
* @author: ChengJW
* @params:
* @return:
* @date: 2021/11/11
* @description: 反显受理信息
*/
$(function (){
    //反显受理信息
    initShowAceptInfo();
});

/**
* @author: ChengJW
* @params:
* @return:
* @date: 2021/11/11
* @description: 放弃按钮
*/
function quitShowAceptInfo() {
    //获取当前弹窗的索引，并关闭；parent 是 layui 定义的全局变量
    let index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}


/**
* @author: ChengJW
* @params:
* @return:
* @date: 2021/11/14
* @description: 初始化用户单位信息
*/
function initShowAceptInfo() {
    let atBussId = getValue("atBussId");
    cleanValue("atBussId");
    sendAjax("/business/archivesSearch/initAceptInfo",{"atBussId" : atBussId},function (result) {
        if (valueIsEqual("00",result.code)){
            let vo = result.data;
            $("#atBussId").val(vo.atBussId);
            $("#atAcptId").val(vo.atAcptId);
            $("#atAcpterNm").val(vo.atAcpterNm);
            $("#atAcptDt").val(layui.util.toDateString(vo.atAcptDt,'yyyy-MM-dd'));
            $("#atAcptStdNm").val(vo.atAcptStdNm);
            $("#atCompNm").val(vo.atCompNm);
            $("#atCreditCode").val(vo.atCreditCode);
            $("#atRegistId").val(vo.atRegistId);
        }
    });
}
